package me.caofeng.pojo;

import org.apache.logging.log4j.LogManager;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * Copyright © 2017曹峰. All rights reserved.
 *
 * @Prject: mall
 * @Package: me.caofeng.pojo
 * @Description:
 * @Author: 曹峰 blog.caofeng.me
 * @Date: 2017-06-20 21:17
 * @Version: V1.0
 */
public class FileForm {
    /**
     * 文件集合，一次可以上传多个文件
     */
    @Size(min = 1,max = 9,message = "一次最多只能上传9张图片")
    private List<MultipartFile> file;

    public FileForm() {

    }

    public FileForm(List<MultipartFile> file) {
        this.file = file;
    }

    public List<MultipartFile> getFile() {
        return file;
    }

    public void setFile(List<MultipartFile> file) {
        this.file = file;
    }
}
